home *** CD-ROM | disk | FTP | other *** search
/ Macwelt 1 / Macwelt DVD 1.toast / Web-Publishing / HTML-Editoren / Alpha ƒ / Help / Calculator Help < prev    next >
Encoding:
Text File  |  2000-12-28  |  3.2 KB  |  110 lines

  1.  
  2. Calculator Help
  3.  
  4.                                                version: 0.1.6
  5.                                                created: 00-08-23 16.41.11
  6.                                            last update: 00-12-28 23.54.56
  7.  
  8.  
  9. Alpha has its own calculator.  This is just a quick-and-dirty RPN stack
  10. calculator, which works on both signed and unsigned decimals, hex integers,
  11. and floating point.  See the file "calc.tcl" for the source code.
  12.  
  13. Invoke from the Utils menu, holding down the shift key.
  14.  
  15. Operations:                                                          
  16.  
  17.     +,-,*,/,|,&,%   Top of stack is 'y', next is 'x'. Does x OP y.   
  18.     ~               bitwise NOT                                      
  19.     ^               x eor y                                          
  20.     <               x << y                                           
  21.     >               x >> y                                           
  22.     n               change y's sign                                  
  23.     q               duplicate y                                          
  24.     i               swap x and y                                     
  25.     m               switch signed/unsigned/hex modes                         
  26.     x               show current mode
  27.     h or ?          help
  28.     <delete>        pop stack                                        
  29.     <space>         enter number    
  30.     opt-P           pi (3.14159265358979323)
  31.     shift-opt-E     e  (2.718281828459045)
  32.  
  33.  
  34. Floating point extensions (work only in floating point mode):
  35.  
  36. The letters in <brackets> refer to these modifier keys:
  37.  
  38.        o   - option modifier
  39.        s   - shift modifier
  40.        z   - control modifier
  41.  
  42.  
  43.     e <so>          returns e=exp(1)=2.718281828459045
  44.     p <o>           returns π=3.14159265358979323
  45.     
  46.     f <o>           floor(y)
  47.     f <so>          ceil(y)
  48.     
  49.     f <oz>          fmod(x,y) (also %)
  50.     h <oz>          hypot(x,y)
  51.     p <oz>          x^y (also ^)
  52.     s <oz>          sqrt(y)
  53.     
  54.     l <z>           log(y)
  55.     l <sz>          exp(y)
  56.     l <oz>          log10(y)
  57.     
  58.     c <o>           cos(y)
  59.     s <o>           sin(y)
  60.     t <o>           tan(y)
  61.     
  62.     c <so>          acos(y)
  63.     s <so>          asin(y)
  64.     t <so>          atan(y)
  65.     
  66.     c <z>           cosh(y)
  67.     s <z>           sinh(y)
  68.     t <z>           tanh(y)
  69.     
  70.     c <sz>          acosh(y)
  71.     s <sz>          asinh(y)
  72.     t <sz>          atanh(y)
  73.     
  74.     t <oz>          atan2(x,y)
  75.  
  76.  
  77. All these bindings can be found in the 'Calc' menu.
  78.  
  79. All calculations are performed in signed decimal in integer modes.  Floating
  80. point numbers can be entered as -1.0e-5 (use 'CTRL+-' to get the minus sign). 
  81. In floating point mode the actual precision is set by the preference
  82. 'displayPrec' (the default value is 6).
  83.  
  84. International users shall not forget to type a space after the dead keys to
  85. get ~ and ^.
  86.  
  87.  
  88.     ----------------------------------------------------------------------
  89.  
  90.  
  91. This "Calculator Example" hyperlink will return the result of typing  
  92.  
  93.     1 <cr> 1 + <cr>
  94.     1 <cr> 1 + <cr> 4.2 *
  95.  
  96. It first calculates 1 + 1, then calculates (1 + 1) * 4.2
  97.  
  98.  
  99.     ----------------------------------------------------------------------
  100.  
  101. Author: ??
  102.  
  103. Calculator Help file updated by Craig Barton Upright
  104.  
  105. E-mail: <cupright@princeton.edu>
  106.   mail: Princeton University,  Department of Sociology
  107.         Princeton, New Jersey  08544
  108.    www: <http://www.princeton.edu/~cupright/>
  109.  
  110.